<template>
    <!-- mine/pages/customerService/customerService.wxml -->
    <view class="customer-wrap">
        <view class="feedbackList-content">
            {{title}}
        </view>   
        <text class="typeName">{{ typeName}}</text>   
        <view class="feedbackList-time">{{createTime}}  <text class="vertical">|</text> {{num}}人阅读</view>    
	
        <rich-text :nodes="content" style="width: 100%;"></rich-text>
    </view>
</template>

<script>
	const newapp=getApp()
'use strict'; // mine/pages/customerService/customerService.ts

export default {
    data() {
        return {
            content: '',
			 createTime:'',
			title:'',
			typeName:'',
			num:0
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {
        if (newapp.globalData.richText) {
            this.content= newapp.globalData.richText.replace(/\<img/gi,'<img class="imgs"')   
        }
		if(options.title){
			this.title= options.title,   
			this.createTime= options.createTime,
			this.typeName= options.typeName,
			this.num= Number(options.num)+1
		}
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {}
};
</script>
<style lang="less">
	@import url('./customerService.less');
</style>